package com.baizhi.app;

import com.baizhi.dao.AlbumDAO;
import com.baizhi.dao.ArticleDAO;
import com.baizhi.entity.Album;
import com.baizhi.entity.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("app/album")
public class AppAlbumController {

    @Autowired
    private AlbumDAO albumDAO;
    @GetMapping("selectAll")
    public List<Album> selectAll(){
        List<Album> list = albumDAO.selectAll();
        return list;
    }
}
